<template>
  <div class="list_menu diy_menu">
    <router-link
            to="/user_center/index"
            class="menu_item"
            :class="{ selected: this.$route.path=== '/user_center/index'}"
     >
      <span class="left_span">个人首页</span>
      <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
    </router-link>
          <router-link
          to="/ordinary_user/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/ordinary_user/table'}"
          v-if="$check_action('/ordinary_user/table','get')">
        <span class="left_span">{{ $page_title("/ordinary_user/table") || 普通用户 }}</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/expert_user/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/expert_user/table'}"
          v-if="$check_action('/expert_user/table','get')">
        <span class="left_span">{{ $page_title("/expert_user/table") || 专家用户 }}</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/health_archives/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/health_archives/table'}"
          v-if="$check_action('/health_archives/table','get')">
        <span class="left_span">{{ $page_title("/health_archives/table") || 健康档案 }}</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/recipe_classification/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/recipe_classification/table'}"
          v-if="$check_action('/recipe_classification/table','get')">
        <span class="left_span">{{ $page_title("/recipe_classification/table") || 菜谱分类 }}</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/medical_recipes/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/medical_recipes/table'}"
          v-if="$check_action('/medical_recipes/table','get')">
        <span class="left_span">{{ $page_title("/medical_recipes/table") || 医疗菜谱 }}</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/expert_classification/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/expert_classification/table'}"
          v-if="$check_action('/expert_classification/table','get')">
        <span class="left_span">{{ $page_title("/expert_classification/table") || 专家分类 }}</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/expert_information/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/expert_information/table'}"
          v-if="$check_action('/expert_information/table','get')">
        <span class="left_span">{{ $page_title("/expert_information/table") || 专家信息 }}</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/health_consultation/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/health_consultation/table'}"
          v-if="$check_action('/health_consultation/table','get')">
        <span class="left_span">{{ $page_title("/health_consultation/table") || 健康咨询 }}</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/consultation_reply/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/consultation_reply/table'}"
          v-if="$check_action('/consultation_reply/table','get')">
        <span class="left_span">{{ $page_title("/consultation_reply/table") || 咨询回复 }}</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/advisory_feedback/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/advisory_feedback/table'}"
          v-if="$check_action('/advisory_feedback/table','get')">
        <span class="left_span">{{ $page_title("/advisory_feedback/table") || 咨询反馈 }}</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
          <router-link
              to="/forum/table"
              class="menu_item"
              :class="{ selected: this.$route.path=== '/forum/table'}"
              v-if="$check_action('/forum/table','get')">
        <span class="left_span">{{$page_title("/forum/table") || "论坛"}}</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
  <router-link
              to="/user/collect"
              class="menu_item"
              :class="{ selected: this.$route.path=== '/user/collect'}"
              v-if="$check_action('/collect/list','get')">
        <span class="left_span">收藏</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
  </router-link>
	<router-link
	            to="/comment/table"
	            class="menu_item"
	            :class="{ selected: this.$route.path=== '/comment/table'}"
	            v-if="$check_action('/comment/table','get')">
	      <span class="left_span">评论管理</span>
	      <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
	</router-link>
  </div>
</template>

<script>
import mixin from "@/mixins/page.js";
export default {
  mixins: [mixin],
  data() {
    return {
    };
  },
  mounted() {
  },
  methods: {
  },

  components: {
  },
};
</script>

<style scoped>
.list_menu {
  flex: 0 0 25%;
  border-bottom: 1px solid #eee;
}
.menu_item {
  display: flex;
  justify-content: space-between;
  padding: 15px 20px;
  border: 1px solid #eee;
  border-bottom: none;
  background-color: #fff;
}
.menu_item.selected {
  background-color: #000;
}
.menu_item.selected span {
  color: #fff ;
}
.content {
  flex: 0 0 74%;
}
</style>
